<template>
  <view class="content">
    <button class="map-button" @click="goMap">打开地图</button>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: "Mapbox Map",
    };
  },
  onLoad() {
    // 可以在这里添加地图初始化后的操作
  },
  methods: {
    goMap() {
      uni.navigateTo({
        url: "/pages/map/map",
      });
    },
  },
};
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.map-button {
  width: 200rpx;
  height: 80rpx;
  line-height: 80rpx;
  text-align: center;
  background-color: #007aff;
  color: #ffffff;
  border-radius: 40rpx;
}
</style>
